<?php

namespace app\saas\command;

use app\common\util\Tools;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\facade\Log;

class CommonTest extends Command
{
    public $url = "http://www.car.com/index.php/"; //访问前缀地址
    public $token = "ed507591496d405bb451cd52d05a292e";

    //通过数据库
    public function execute(Input $input, Output $output)
    {
        //Route::any('saas/role/login', 'saas/passport/login');                                                                 // 登录
//        $data = Tools::curl($this->url . "saas/role/login", json_encode(["account" => "song", "password" => 123456]));
//        echo print_r(json_decode($data,true)) . "\n\n";
//        echo $data . "\n";
    }
}
